package com.ln.asset.core.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ln.asset.common.result.R;
import com.ln.asset.core.pojo.RecHistory;
import com.ln.asset.core.pojo.RecRecipients;
import com.ln.asset.core.service.RecHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 资产领用审批历史 前端控制器
 * </p>
 *
 * @author cuixiaoxin
 * @since 2022-04-29
 */
@Api(tags = "资产领用审批历史")
@RestController
@RequestMapping("/admin/core/recHistory")
@Slf4j
public class RecHistoryController {

    @Resource
    private RecHistoryService recHistoryService;

    /**
     * 资产领用历史审批表查询 +分页
     */
    @ApiOperation("获取资产领用审批历史列表")
    @GetMapping("/getHistoryList")
    public R getHistoryList(){
        List<RecHistory> list = recHistoryService.getHistoryList();
        return R.ok().data("list",list);
    }

}

